package Week3.J0503;

// 前导0处理

import java.util.Scanner;

public class 小乐乐改数字 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        StringBuilder sbr = new StringBuilder();

        int num = scanner.nextInt();
        while (num > 0) {
            int i = num % 10;
            if (i % 2 == 0) {
                sbr.append(0);
            }else {
                sbr.append(1);
            }
            num /= 10;
        }
        sbr = sbr.reverse();
        int n = sbr.length();
        int count = 0;
        while (count < n-1) {
            if (sbr.charAt(0) != '0') break;
            if (sbr.charAt(0) == '0') {
                sbr.deleteCharAt(0);
                count++;
            }
        }
        System.out.println(sbr.toString());
    }
}
